package cn.siat.gene.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.siat.gene.domain.DesignTBProjectMembers;
import cn.siat.gene.domain.dto.RemoveProjectMemberDto;

import java.util.List;

/**
 * 项目成员Mapper接口
 * 
 * @author siat
 * @date 2022-10-08
 */
public interface DesignTBProjectMembersMapper extends BaseMapper<DesignTBProjectMembers> {

    /**
     * 查询项目成员列表
     *
     * @param designTBProjectMembers 项目成员
     * @return 项目成员集合
     */
    public List<DesignTBProjectMembers> selectDesignTBProjectMembersList(DesignTBProjectMembers designTBProjectMembers);

    /**
     * 根据项目ID查询项目成员员工ID
     *
     * @param projectId 项目ID
     * @return 项目成员集合
     */
    public String[] selectDesignTBProjectMembersStaffIds(String projectId);

    /**
     * 根据项目ID和员工ID删除项目成员
     *
     * @param removeMember
     * @return 项目成员集合
     */
    public int removeProjectMember(RemoveProjectMemberDto removeMember);
}
